package com.dogsong.liteflow.editor.slot.request;

import java.util.HashMap;
import java.util.Map;

public class SwitchData extends BaseRequest{
    public SwitchData(Map<String, String> switchDataMap) {
        this.switchDataMap = switchDataMap;
    }

    Map<String,String> switchDataMap = new HashMap<>();

    public void setSwitchValue(String tag,String value) {
        switchDataMap.put(tag, value);
    }

    public Object getSwitchValue(String tag) {
        return switchDataMap.get(tag);
    }

    public Map<String, String> getAll() {
        return switchDataMap;
    }
}
